import 'element-plus/dist/index.css';
import 'element-plus/theme-chalk/dark/css-vars.css';
import './main.css';

import { createApp } from 'vue';
import App from './App.vue';

import ElementPlus from 'element-plus';
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';

import router from './route';

const app = createApp(App);

app.use(ElementPlus, {
  locale: zhCn,
});
Object.entries(ElementPlusIconsVue).forEach(([key, component]) => {
  app.component('ElIcon' + key, component);
})
app.use(router);
app.mount('#app');
